package com.example.mymvvmdemo.models.main.fragment.home.entity;

import java.util.List;

public class BlogArticlesEntity {

    public int code;
    public String message;
    public List<DataDTO> data;

    @Override
    public String toString() {
        return "BlogArticlesEntity{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        public int id;
        public String title;
        public String content;
        public AuthorDTO author;
        public CategoryDTO category;
        public List<?> tags;
        public String status;
        public int views;
        public int likes;
        public String image_url;
        public String created_at;
        public String updated_at;
        public String published_at;
        public List<?> comments;
        public int comment_count;
        public boolean isSelect;
        public boolean isEdit;

        @Override
        public String toString() {
            return "DataDTO{" +
                    "id=" + id +
                    ", title='" + title + '\'' +
                    ", content='" + content + '\'' +
                    ", author=" + author +
                    ", category=" + category +
                    ", tags=" + tags +
                    ", status='" + status + '\'' +
                    ", views=" + views +
                    ", likes=" + likes +
                    ", image_url='" + image_url + '\'' +
                    ", created_at='" + created_at + '\'' +
                    ", updated_at='" + updated_at + '\'' +
                    ", published_at='" + published_at + '\'' +
                    ", comments=" + comments +
                    ", comment_count=" + comment_count +
                    ", isSelect=" + isSelect +
                    ", isEdit=" + isEdit +
                    '}';
        }

        public boolean isSelect() {
            return isSelect;
        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public boolean isEdit() {
            return isEdit;
        }

        public void setEdit(boolean edit) {
            isEdit = edit;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public AuthorDTO getAuthor() {
            return author;
        }

        public void setAuthor(AuthorDTO author) {
            this.author = author;
        }

        public CategoryDTO getCategory() {
            return category;
        }

        public void setCategory(CategoryDTO category) {
            this.category = category;
        }

        public List<?> getTags() {
            return tags;
        }

        public void setTags(List<?> tags) {
            this.tags = tags;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public int getViews() {
            return views;
        }

        public void setViews(int views) {
            this.views = views;
        }

        public int getLikes() {
            return likes;
        }

        public void setLikes(int likes) {
            this.likes = likes;
        }

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        public String getPublished_at() {
            return published_at;
        }

        public void setPublished_at(String published_at) {
            this.published_at = published_at;
        }

        public List<?> getComments() {
            return comments;
        }

        public void setComments(List<?> comments) {
            this.comments = comments;
        }

        public int getComment_count() {
            return comment_count;
        }

        public void setComment_count(int comment_count) {
            this.comment_count = comment_count;
        }

        public static class AuthorDTO {
            public int id;
            public String username;
            public String mobile;
            public String email;
            public String nickname;
            public String gender;
            public String birthday;
            public String bio;
            public String avatar;
            public String level;
            public int score;
            public String status;
            public String date_joined;
            public String last_login;

            @Override
            public String toString() {
                return "AuthorDTO{" +
                        "id=" + id +
                        ", username='" + username + '\'' +
                        ", mobile=" + mobile +
                        ", email='" + email + '\'' +
                        ", nickname='" + nickname + '\'' +
                        ", gender='" + gender + '\'' +
                        ", birthday='" + birthday + '\'' +
                        ", bio='" + bio + '\'' +
                        ", avatar='" + avatar + '\'' +
                        ", level='" + level + '\'' +
                        ", score=" + score +
                        ", status='" + status + '\'' +
                        ", date_joined='" + date_joined + '\'' +
                        ", last_login='" + last_login + '\'' +
                        '}';
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getGender() {
                return gender;
            }

            public void setGender(String gender) {
                this.gender = gender;
            }

            public String getBirthday() {
                return birthday;
            }

            public void setBirthday(String birthday) {
                this.birthday = birthday;
            }

            public String getBio() {
                return bio;
            }

            public void setBio(String bio) {
                this.bio = bio;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public int getScore() {
                return score;
            }

            public void setScore(int score) {
                this.score = score;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getDate_joined() {
                return date_joined;
            }

            public void setDate_joined(String date_joined) {
                this.date_joined = date_joined;
            }

            public String getLast_login() {
                return last_login;
            }

            public void setLast_login(String last_login) {
                this.last_login = last_login;
            }
        }

        public static class CategoryDTO {
            public int id;
            public String name;
            public String description;
            public String created_at;
            public String updated_at;

            @Override
            public String toString() {
                return "CategoryDTO{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        ", description='" + description + '\'' +
                        ", created_at='" + created_at + '\'' +
                        ", updated_at='" + updated_at + '\'' +
                        '}';
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }
        }
    }
}
